<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Playbook - Scenario</title>
    <link rel="stylesheet" type="text/css" href="https://playbook-ui.github.io/playbook-ios/all.css" media="all" />
</head>
<body>
    <header>
        <a href="https://playbook-ui.github.io/playbook-ios">
            <strong>
                Playbook
            </strong>
            <span>Documentation</span>
        </a>
    </header>

    <!--
    <form class="search">
        <input type="search" placeholder="Search" />
    </form>
    -->

    <nav>
        <div class="wrapper">
            <h2>On This Page</h2>
            <ol><li><a href="#relationships">Relationships</a><ul><li><a href="#relationships">Conforms To</a></li></ul></li><li><a href="#initializers">Initializers</a><ul><li class="initializer"><a href="#scenario.init(_:layout:file:line:content:)">init(_:​layout:​file:​line:​content:​)</a></li><li class="initializer"><a href="#scenario.init(_:layout:file:line:content:)">init(_:​layout:​file:​line:​content:​)</a></li><li class="initializer"><a href="#scenario.init(_:layout:file:line:content:)">init(_:​layout:​file:​line:​content:​)</a></li><li class="initializer"><a href="#scenario.init(_:layout:file:line:content:)">init(_:​layout:​file:​line:​content:​)</a></li></ul></li><li><a href="#properties">Properties</a><ul><li class="variable"><a href="#scenario.name">name</a></li><li class="variable"><a href="#scenario.layout">layout</a></li><li class="variable"><a href="#scenario.file">file</a></li><li class="variable"><a href="#scenario.line">line</a></li><li class="variable"><a href="#scenario.content">content</a></li></ul></li><li><a href="#methods">Methods</a><ul><li class="function"><a href="#scenario.buildscenarios()">build​Scenarios()</a></li></ul></li></ol>
        </div>
    </nav>

    <main>
        <article>
            <h1>
    <small>Structure</small>
    <code class="name">Scenario</code>
</h1>

<div class="declaration">
<pre class="highlight"><code><html><body><span class="keyword">public</span> <span class="keyword">struct</span> <span class="type">Scenario</span>  </body></html></code></pre>
</div>
<div class="summary" role="doc-abstract">
    <p>Represents part of the component state.</p>

</div>
<section id="relationships">
    <h2 hidden>Relationships</h2>
        <figure>
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
 "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.47.1 (20210417.1919)
 -->
<!-- Pages: 1 -->
<svg width="872pt" height="116pt"
 viewBox="0.00 0.00 872.00 116.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 112)">
<polygon fill="white" stroke="transparent" points="-4,4 -4,-112 868,-112 868,4 -4,4"/>
<!-- Scenario -->
<g id="node1" class="node structure current">
<title>Scenario</title>
<g id="a_node1"><a xlink:href="https://playbook-ui.github.io/playbook-ios/Scenario" xlink:title="Scenario">
<path fill="none" stroke="black" stroke-width="3" d="M528,-108C528,-108 336,-108 336,-108 330,-108 324,-102 324,-96 324,-96 324,-84 324,-84 324,-78 330,-72 336,-72 336,-72 528,-72 528,-72 534,-72 540,-78 540,-84 540,-84 540,-96 540,-96 540,-102 534,-108 528,-108"/>
<text text-anchor="middle" x="432" y="-86.3" font-family="Menlo" font-size="14.00">Scenario</text>
</a>
</g>
</g>
<!-- ScenariosBuildable -->
<g id="node2" class="node protocol">
<title>ScenariosBuildable</title>
<g id="a_node2"><a xlink:href="https://playbook-ui.github.io/playbook-ios/ScenariosBuildable" xlink:title="ScenariosBuildable">
<path fill="none" stroke="black" d="M528,-36C528,-36 336,-36 336,-36 330,-36 324,-30 324,-24 324,-24 324,-12 324,-12 324,-6 330,0 336,0 336,0 528,0 528,0 534,0 540,-6 540,-12 540,-12 540,-24 540,-24 540,-30 534,-36 528,-36"/>
<text text-anchor="middle" x="432" y="-14.3" font-family="Menlo" font-size="14.00">ScenariosBuildable</text>
</a>
</g>
</g>
<!-- Scenario&#45;&gt;ScenariosBuildable -->
<g id="edge1" class="edge conformsTo">
<title>Scenario&#45;&gt;ScenariosBuildable</title>
<path fill="none" stroke="black" d="M432,-71.7C432,-63.98 432,-54.71 432,-46.11"/>
<polygon fill="black" stroke="black" points="435.5,-46.1 432,-36.1 428.5,-46.1 435.5,-46.1"/>
</g>
</g>
</svg>


    <figcaption hidden>Inheritance graph for Scenario.</figcaption>
</figure>
        <h3>Conforms To</h3>
<dl>
    <dt class="protocol"><code><a href="https://playbook-ui.github.io/playbook-ios/ScenariosBuildable">ScenariosBuildable</a></code></dt>
<dd><p>Represents an instance that can build an array of scenarios.</p>
</dd>
</dl>
</section>
    <section id="initializers">
        <h2>Initializers</h2>

        <div role="article" class="initializer" id="scenario.init(_:layout:file:line:content:)">
    <h3>
        <code><a href="#scenario.init(_:layout:file:line:content:)">init(_:​layout:​file:​line:​content:​)</a></code>
    </h3>
    <div class="declaration">
<pre class="highlight"><code><html><body><span class="keyword">public</span> <span class="keyword">init</span>(
        <span class="keyword">_</span> <span class="variable">name</span>: <a href="https://playbook-ui.github.io/playbook-ios/ScenarioName"><span class="type">ScenarioName</span></a>,
        <span class="variable">layout</span>: <a href="https://playbook-ui.github.io/playbook-ios/ScenarioLayout"><span class="type">ScenarioLayout</span></a>,
        <span class="variable">file</span>: <span class="type">StaticString</span> = <span class="keyword">#file</span>,
        <span class="variable">line</span>: <span class="type">UInt</span> = <span class="keyword">#line</span>,
        <span class="variable">content</span>: <span class="attribute">@</span><span class="attribute">escaping</span> (<a href="https://playbook-ui.github.io/playbook-ios/ScenarioContext"><span class="type">ScenarioContext</span></a>) -&gt; <a href="https://playbook-ui.github.io/playbook-ios/ScenarioContent"><span class="type">ScenarioContent</span></a>
    )  </body></html></code></pre>
</div>
<div class="summary" role="doc-abstract">
    <p>Creates a new scenario.</p>

</div>
<h4>Parameters</h4>

<table class="parameters">
  <thead hidden>
  <tr>
      <th>Name</th>
      <th>Type</th>
      <th>Description</th>
  </tr>
  </thead>
  <tbody>
    <tr>
    <th>name</th>
    <td><code class="type">Scenario​Name</code></td>
    <td><p>A unique name of this scenario.</p>
</td>
</tr>
<tr>
    <th>layout</th>
    <td><code class="type">Scenario​Layout</code></td>
    <td><p>Represents how the component should be laid out.</p>
</td>
</tr>
<tr>
    <th>file</th>
    <td><code class="type">Static​String</code></td>
    <td><p>A file path where defined this scenario.</p>
</td>
</tr>
<tr>
    <th>line</th>
    <td><code class="type">UInt</code></td>
    <td><p>A line number where defined this scenario in file.</p>
</td>
</tr>
<tr>
    <th>content</th>
    <td><code class="type">@escaping (Scenario​Context) -&gt; Scenario​Content</code></td>
    <td><p>A closure that make a new content with passed context.</p>
</td>
</tr>
  </tbody>
</table>
</div>
<div role="article" class="initializer" id="scenario.init(_:layout:file:line:content:)">
    <h3>
        <code><a href="#scenario.init(_:layout:file:line:content:)">init(_:​layout:​file:​line:​content:​)</a></code>
    </h3>
    <div class="declaration">
<pre class="highlight"><code><html><body><span class="keyword">public</span> <span class="keyword">init</span>(
        <span class="keyword">_</span> <span class="variable">name</span>: <a href="https://playbook-ui.github.io/playbook-ios/ScenarioName"><span class="type">ScenarioName</span></a>,
        <span class="variable">layout</span>: <a href="https://playbook-ui.github.io/playbook-ios/ScenarioLayout"><span class="type">ScenarioLayout</span></a>,
        <span class="variable">file</span>: <span class="type">StaticString</span> = <span class="keyword">#file</span>,
        <span class="variable">line</span>: <span class="type">UInt</span> = <span class="keyword">#line</span>,
        <span class="variable">content</span>: <span class="attribute">@</span><span class="attribute">escaping</span> () -&gt; <a href="https://playbook-ui.github.io/playbook-ios/ScenarioContent"><span class="type">ScenarioContent</span></a>
    )  </body></html></code></pre>
</div>
<div class="summary" role="doc-abstract">
    <p>Creates a new scenario.</p>

</div>
<h4>Parameters</h4>

<table class="parameters">
  <thead hidden>
  <tr>
      <th>Name</th>
      <th>Type</th>
      <th>Description</th>
  </tr>
  </thead>
  <tbody>
    <tr>
    <th>name</th>
    <td><code class="type">Scenario​Name</code></td>
    <td><p>A unique name of this scenario.</p>
</td>
</tr>
<tr>
    <th>layout</th>
    <td><code class="type">Scenario​Layout</code></td>
    <td><p>Represents how the component should be laid out.</p>
</td>
</tr>
<tr>
    <th>file</th>
    <td><code class="type">Static​String</code></td>
    <td><p>A file path where defined this scenario.</p>
</td>
</tr>
<tr>
    <th>line</th>
    <td><code class="type">UInt</code></td>
    <td><p>A line number where defined this scenario in file.</p>
</td>
</tr>
<tr>
    <th>content</th>
    <td><code class="type">@escaping () -&gt; Scenario​Content</code></td>
    <td><p>A closure that make a new content.</p>
</td>
</tr>
  </tbody>
</table>
</div>
<div role="article" class="initializer" id="scenario.init(_:layout:file:line:content:)">
    <h3>
        <code><a href="#scenario.init(_:layout:file:line:content:)">init(_:​layout:​file:​line:​content:​)</a></code>
    </h3>
    <div class="declaration">
<pre class="highlight"><code><html><body><span class="keyword">init</span>&lt;<span class="variable">Content</span>: <span class="type">View</span>&gt;(
        <span class="keyword">_</span> <span class="variable">name</span>: <a href="https://playbook-ui.github.io/playbook-ios/ScenarioName"><span class="type">ScenarioName</span></a>,
        <span class="variable">layout</span>: <a href="https://playbook-ui.github.io/playbook-ios/ScenarioLayout"><span class="type">ScenarioLayout</span></a>,
        <span class="variable">file</span>: <span class="type">StaticString</span> = <span class="keyword">#file</span>,
        <span class="variable">line</span>: <span class="type">UInt</span> = <span class="keyword">#line</span>,
        <span class="variable">content</span>: <span class="attribute">@</span><span class="attribute">escaping</span> (<a href="https://playbook-ui.github.io/playbook-ios/ScenarioContext"><span class="type">ScenarioContext</span></a>) -&gt; <span class="type">Content</span>
    )  </body></html></code></pre>
</div>
<div class="summary" role="doc-abstract">
    <p>Creates a new scenario with SwiftUI view.</p>

</div>
<h4>Parameters</h4>

<table class="parameters">
  <thead hidden>
  <tr>
      <th>Name</th>
      <th>Type</th>
      <th>Description</th>
  </tr>
  </thead>
  <tbody>
    <tr>
    <th>name</th>
    <td><code class="type">Scenario​Name</code></td>
    <td><p>A unique name of this scenario.</p>
</td>
</tr>
<tr>
    <th>layout</th>
    <td><code class="type">Scenario​Layout</code></td>
    <td><p>Represents how the component should be laid out.</p>
</td>
</tr>
<tr>
    <th>file</th>
    <td><code class="type">Static​String</code></td>
    <td><p>A file path where defined this scenario.</p>
</td>
</tr>
<tr>
    <th>line</th>
    <td><code class="type">UInt</code></td>
    <td><p>A line number where defined this scenario in file.</p>
</td>
</tr>
<tr>
    <th>content</th>
    <td><code class="type">@escaping (Scenario​Context) -&gt; Content</code></td>
    <td><p>A closure that make a new content with passed context.</p>
</td>
</tr>
  </tbody>
</table>
</div>
<div role="article" class="initializer" id="scenario.init(_:layout:file:line:content:)">
    <h3>
        <code><a href="#scenario.init(_:layout:file:line:content:)">init(_:​layout:​file:​line:​content:​)</a></code>
    </h3>
    <div class="declaration">
<pre class="highlight"><code><html><body><span class="keyword">init</span>&lt;<span class="variable">Content</span>: <span class="type">View</span>&gt;(
        <span class="keyword">_</span> <span class="variable">name</span>: <a href="https://playbook-ui.github.io/playbook-ios/ScenarioName"><span class="type">ScenarioName</span></a>,
        <span class="variable">layout</span>: <a href="https://playbook-ui.github.io/playbook-ios/ScenarioLayout"><span class="type">ScenarioLayout</span></a>,
        <span class="variable">file</span>: <span class="type">StaticString</span> = <span class="keyword">#file</span>,
        <span class="variable">line</span>: <span class="type">UInt</span> = <span class="keyword">#line</span>,
        <span class="variable">content</span>: <span class="attribute">@</span><span class="attribute">escaping</span> () -&gt; <span class="type">Content</span>
    )  </body></html></code></pre>
</div>
<div class="summary" role="doc-abstract">
    <p>Creates a new scenario with SwiftUI view.</p>

</div>
<h4>Parameters</h4>

<table class="parameters">
  <thead hidden>
  <tr>
      <th>Name</th>
      <th>Type</th>
      <th>Description</th>
  </tr>
  </thead>
  <tbody>
    <tr>
    <th>name</th>
    <td><code class="type">Scenario​Name</code></td>
    <td><p>A unique name of this scenario.</p>
</td>
</tr>
<tr>
    <th>layout</th>
    <td><code class="type">Scenario​Layout</code></td>
    <td><p>Represents how the component should be laid out.</p>
</td>
</tr>
<tr>
    <th>file</th>
    <td><code class="type">Static​String</code></td>
    <td><p>A file path where defined this scenario.</p>
</td>
</tr>
<tr>
    <th>line</th>
    <td><code class="type">UInt</code></td>
    <td><p>A line number where defined this scenario in file.</p>
</td>
</tr>
<tr>
    <th>content</th>
    <td><code class="type">@escaping () -&gt; Content</code></td>
    <td><p>A closure that make a new content.</p>
</td>
</tr>
  </tbody>
</table>
</div>
    </section>
    <section id="properties">
        <h2>Properties</h2>

        <div role="article" class="variable" id="scenario.name">
    <h3>
        <code><a href="#scenario.name">name</a></code>
    </h3>
    <div class="declaration">
<pre class="highlight"><code><html><body><span class="keyword">public</span> <span class="keyword">var</span> <span class="variable">name</span>: <a href="https://playbook-ui.github.io/playbook-ios/ScenarioName"><span class="type">ScenarioName</span></a></body></html></code></pre>
</div>
<div class="summary" role="doc-abstract">
    <p>A unique name of scenario that describes component and its state.</p>

</div>
</div>
<div role="article" class="variable" id="scenario.layout">
    <h3>
        <code><a href="#scenario.layout">layout</a></code>
    </h3>
    <div class="declaration">
<pre class="highlight"><code><html><body><span class="keyword">public</span> <span class="keyword">var</span> <span class="variable">layout</span>: <a href="https://playbook-ui.github.io/playbook-ios/ScenarioLayout"><span class="type">ScenarioLayout</span></a></body></html></code></pre>
</div>
<div class="summary" role="doc-abstract">
    <p>Represents how the component should be laid out.</p>

</div>
</div>
<div role="article" class="variable" id="scenario.file">
    <h3>
        <code><a href="#scenario.file">file</a></code>
    </h3>
    <div class="declaration">
<pre class="highlight"><code><html><body><span class="keyword">public</span> <span class="keyword">var</span> <span class="variable">file</span>: <span class="type">StaticString</span></body></html></code></pre>
</div>
<div class="summary" role="doc-abstract">
    <p>A file path where defined this scenario.</p>

</div>
</div>
<div role="article" class="variable" id="scenario.line">
    <h3>
        <code><a href="#scenario.line">line</a></code>
    </h3>
    <div class="declaration">
<pre class="highlight"><code><html><body><span class="keyword">public</span> <span class="keyword">var</span> <span class="variable">line</span>: <span class="type">UInt</span></body></html></code></pre>
</div>
<div class="summary" role="doc-abstract">
    <p>A line number where defined this scenario in file.</p>

</div>
</div>
<div role="article" class="variable" id="scenario.content">
    <h3>
        <code><a href="#scenario.content">content</a></code>
    </h3>
    <div class="declaration">
<pre class="highlight"><code><html><body><span class="keyword">public</span> <span class="keyword">var</span> <span class="variable">content</span>: (<a href="https://playbook-ui.github.io/playbook-ios/ScenarioContext"><span class="type">ScenarioContext</span></a>) -&gt; <a href="https://playbook-ui.github.io/playbook-ios/ScenarioContent"><span class="type">ScenarioContent</span></a></body></html></code></pre>
</div>
<div class="summary" role="doc-abstract">
    <p>A closure that make a new content with passed context.</p>

</div>
</div>
    </section>
    <section id="methods">
        <h2>Methods</h2>

        <div role="article" class="function" id="scenario.buildscenarios()">
    <h3>
        <code><a href="#scenario.buildscenarios()">build​Scenarios()</a></code>
    </h3>
    <div class="declaration">
<pre class="highlight"><code><html><body><span class="keyword">public</span> <span class="keyword">func</span> <span class="function">buildScenarios</span>() -&gt; [<a href="https://playbook-ui.github.io/playbook-ios/Scenario"><span class="type">Scenario</span></a>]  </body></html></code></pre>
</div>
<div class="summary" role="doc-abstract">
    <p>Builds an array of scenarios containing only <code>self</code>.</p>

</div>
</div>
    </section>



        </article>
    </main>

    <footer>
        <p>
    Generated on <time datetime="2021-08-25T19:01:54+0900">August 25, 2021</time> using <a href="https://github.com/SwiftDocOrg/swift-doc">swift-doc</a> <span class="version">1.0.0-rc.1</span>.
</p>
    </footer>
</body>
</html>
